import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
  base: "/",
  outDir: "/dist",
  head: [["link", { rel: "icon", href: "./favicon.ico" }]],
  title: "DragonBaby",
  vite: {
    css: {
      devSourcemap: true
    }
  },
  description: "A VitePress Site",
  themeConfig: {
    logo: "./favicon.ico",
    // siteTitle: 'Hello World',
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      // { text: 'Home', link: '/' },
      {
        text: "文档",
        items: [
          { text: "Vue3", link: "https://cn.vuejs.org/" },
          { text: "Snap.svg", link: "http://snapsvg.io/" }
        ]
      }
    ],

    sidebar: [
      {
        text: "Three.js学习",
        items: [
          { text: "场景Scene", link: "/threejs/scene" },
          { text: "相机Camera", link: "/threejs/camera" },
          { text: "渲染器Renderer", link: "/threejs/renderer" },
          { text: "网格模型(三角形概念)", link: "/threejs/mesh" },
          { text: "纹理贴图", link: "/threejs/texture" }
        ]
      },
      {
        text: "学习blog",
        items: [
          { text: "我们的太阳系", link: "/mine/solarSystem" },
          { text: "奥运五环", link: "/mine/olympicRings" },
          { text: "手撸Promise", link: "/mine/promise" },
          { text: "一个有意思的题目", link: "/mine/gentertor" }
        ]
      }
    ],

    socialLinks: [{ icon: "github", link: "https://github.com/Dragonsbaby" }],
    footer: {
      message: "Released under the MIT License",
      copyright: "Copyright @ 2025-present DragonBaby"
    }
  }
});
